package com.huan.iteye.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * iteye blog 调用远程iteye-crawler方法
 *
 * @author huan.fu
 * @date 2018/9/13 - 13:46
 */
@FeignClient("iteye-crawler")
public interface IteyeBlogServiceFeign {

	/**
	 * 调用爬虫工程的爬虫方法
	 *
	 * @param workDate
	 */
	@GetMapping("/crawler/iteye")
	void crawler(@RequestParam("workDate") String workDate);
}
